function storage(attr, obj) {
    let sto = JSON.parse(localStorage[attr] || "[]");
    sto.push(obj);
    localStorage[attr] = JSON.stringify(sto);
}
export default storage